-- GENERATED SPELL FOR [Argent Shieldman] --


function spell0_28028(pUnit, Event) --@Deploy Parachute,Self--
pUnit:FullCastSpellOnTarget(53039,pUnit)
pUnit:RegisterEvent('Sorts_28028', 3285, 1)
end

function spell1_28028(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28028', 15000, 1)
end

function spell2_28028(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(32587,pUnit)
pUnit:RegisterEvent('Sorts_28028', 5335, 1)
end

function Sorts_28028(pUnit, Event)
local choix_sorts_28028 = math.random(0, 2)
if choix_sorts_28028 == 0 then
pUnit:RegisterEvent('spell0_28028', 1, 1)
end
if choix_sorts_28028 == 1 then
pUnit:RegisterEvent('spell1_28028', 1, 1)
end
if choix_sorts_28028 == 2 then
pUnit:RegisterEvent('spell2_28028', 1, 1)
end
end

function mob28028_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28028', math.random(1500, 3000), 1)
end

function mob28028_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28028_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28028_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28028, 1, 'mob28028_Action')
RegisterUnitEvent(28028, 2, 'mob28028_Leave')
RegisterUnitEvent(28028, 3, 'mob28028_Kill')
RegisterUnitEvent(28028, 4, 'mob28028_Die')
